﻿using System.Configuration;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using ZilLion.Service.Core.ModelBase;

namespace DapperWrapper
{
    public class SourceContextInstance : IMultiDbContext
    {
        public IDbConnection GetConnection()
        {
            DbConnection connection = new SqlConnection(mconnstr);
            return connection;
        }

        public string mconnstr { get; set; }
        public short mizhch { get; set; }
        public int miid { get; set; }
        public string mikvname { get; set; }
        public string miidtype { get; set; }

        public string mikey
        {
            get { return miid + miidtype + mikvname; }
            set { }
        }

        public string ContextName => throw new System.NotImplementedException();
    }

}